#include "kernel.h"

extern int strcmp();

/* 
 *  KBDUS means US Keyboard Layout. This is a scancode table
 *  used to layout a standard US keyboard. I have left some
 *  comments in to give you an idea of what key is what, even
 *  though I set it's array index to 0. You can change that to
 *  whatever you want using a macro, if you wish
 * 
 */
void shell_command_run( unsigned char *command)
{
	long int num;

	if (!strcmp(CMD_CLSCR, command))
	{
		cls();
	}

	if (!strcmp(CMD_PLAYPIC, command))
	{
		print(MSG_FUZZ_PIC_CONTROLLER);
		for(num = 0x0; num < 0xffff; num ++)
			play_pics(num, num + 1);
		print(MSG_DONE_PIC_FUZZING);
	}
	if (!strcmp(CMD_HELP, command))
	{
		display_help();
	}
	
	if (!strcmp(CMD_PCNETOPS, command))
	{
		pcnet_ops();
	}
	if (!strcmp (CMD_TIMERTICKS, command)) {
		print_timer_ticks();
	}
	if (!strcmp (CMD_TESTNUM, command))
	{
		test_numbers();
	}

	print("/>");

}

